<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String contextPath = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>权限管理</title>
<link rel="stylesheet" href="<%=contextPath%>/openSources/layui/css/layui.css">
<style type="text/css">
	.layui-table-cell .layui-form-checkbox[lay-skin=primary] {
		top: 5px;
	}
	#permissionForm {
		padding-top: 20px;
		padding-right: 20px;
	}
</style>
</head>
<body>
<input type="text" id="contextPath" value="${contextPath }" style="display: none">
<div id="permissionForm" style="display: none;">
	<form class="layui-form">
		<div class="layui-form-item">
			<label class="layui-form-label">ID</label>
			<div class="layui-input-block">
				<input type="text" name="id" id="id" class="layui-input" readonly="readonly"/>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">权限Code</label>
			<div class="layui-input-block">
				<input type="text" name="permissionCode" id="permissionCode" placeholder="请输入权限Code" class="layui-input" required  lay-verify="required|notExist"/>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">权限名称</label>
			<div class="layui-input-block">
				<input type="text" name="permissionName" id="permissionName" placeholder="请输入权限名称" class="layui-input" required  lay-verify="required"/>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">权限描述</label>
			<div class="layui-input-block">
				<textarea name="permissionDesc" id="permissionDesc" placeholder="请输入权限描述" class="layui-textarea"></textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<div class="layui-layout-right">
					<button class="layui-btn layui-btn-normal" lay-submit lay-filter="save">保存</button>
					<button class="layui-btn layui-btn-primary" type="reset">重置</button>
				</div>
			</div>
		</div>
	</form>
</div>
<div class="layui-btn-group" id="permissionBar">
	<button class="layui-btn" id="addPermission">新增</button>
	<button class="layui-btn layui-btn-normal" id="editPermission">编辑</button>
	<button class="layui-btn layui-btn-danger" id="deletePermission">删除</button>
</div>
<table id="permissionList" lay-filter="permissionListFilter" class="layui-hide"></table>
<script type="text/html" id="barDemo">
	<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
	<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
	<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/javascript" src="<%=contextPath%>/openSources/layui/layui.js"></script>
<script type="text/javascript" src="<%=contextPath %>/js/common.js"></script>
<script type="text/javascript" src="<%=contextPath %>/js/auth/permission.js?v=16"></script>
</body>
</html>